package com.demo.vo;


public class Result {

    private Integer status;

    private String info;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public static Result buildSuccess(){
        Result result = new Result();
        result.setStatus(1);
        result.setInfo("success");
        return result;
    }

    public static Result buildError(){
        Result result = new Result();
        result.setStatus(0);
        result.setInfo("error");
        return result;
    }
}
